package contegor.scire.structure.queries;

import contegor.scire.core.Concept;
import contegor.scire.core.Id;
import contegor.scire.core.Link;
import contegor.scire.core.Version;
import contegor.scire.core.queries.IsConnectedWith;
import contegor.scire.core.queries.Query;
import contegor.scire.core.queries.WithFlow;
import contegor.scire.structure.Constants;

/**
 * {@link Query} that fetches recursively instances that belong to a {@link Concept} identified by its {@link Id}.
 *
 * @version $Revision$
 * @author  Héctor Cirbián Pousa ($Author$)
 */
@Version("$Id$")
public class GetBelongsTo extends BaseRecursiveQuery {
  private static final long serialVersionUID = 2824212358819952473L;

  public GetBelongsTo(Id id) {
    super(id, new IsConnectedWith<Link>(Constants.TO_BELONG, WithFlow.NONE), new IsConnectedWith<Link>(Constants.TO_BELONG, WithFlow.NONE));
  }
}